﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shop.Model
{
    /// <summary> 运费合同报表 </summary>
    public class LogiFeeReport: OutStockItem
    {


        /// <summary> 快递老板 </summary>
        //[Column(IsIgnore = true)]
        public string LogiAcct { set; get; }


        /// <summary> 无快递记录 </summary>
        //[Column(IsIgnore = true)]
        public bool NoLogiTrace { set; get; }

        public string NoLogiTraceText => NoLogiTrace ? "无快递" : string.Empty;


        /// <summary> 出库中没有的 </summary>
        //[Column(IsIgnore = true)]
        public bool NotInOutstock { get; set; }

        public string NotInOutstockText => NotInOutstock ? "无出库" : string.Empty;


        /// <summary> 是否预估 </summary>
        public bool IsForecast { get; set; }

        public string IsForecastText => IsForecast ? "预估" : string.Empty;


        /// <summary> 预估邮费 </summary>
        public decimal ForecastAmount { get; set; }


        /// <summary> 只是报表数据, 不是实际的出库 </summary>
        public bool IsOnlyReport { set; get; }= false;


        //[Column(IsPrimary =true, IsIdentity =true)]
        //public int id { set; get; }

        ///// <summary>  </summary>
        //public int DocId { set; get; }

        ///// <summary> 月份 </summary>
        //[Column(StringLength =20)]
        //public string FMonth { set; get; }



        ///// <summary> 快递账户 </summary>
        //public string LogiAccount { set; get; }

        ///// <summary> 运费金额 </summary>
        //[Column(Precision =18,Scale =4)]
        //public decimal LogiAmount { set; get; }

        ///// <summary> 是否预估 </summary>
        //public bool IsForecast { set; get; }


        ///// <summary> 预估金额 </summary>
        //[Column(Precision =18,Scale =4)]
        //public decimal ForecastAmount { set; get; }



        /// <summary> 报表分组名称 </summary>
        [Column(IsIgnore = true)]
        public string FeeGroupName { set; get; }

        ///// <summary> 仓库 </summary>
        //[Column(IsIgnore = true)]
        //public string Stock { set; get; }


        /// <summary> 费用金额 </summary>
        [Column(IsIgnore = true)]
        public decimal Fee { set; get; }

        ///// <summary> 用结算重量 </summary>
        //[Column(Precision =18,Scale =4)]
        //public decimal weight { get; set; }

        //[Column(Precision =18,Scale =4)]
        //public decimal qty { get; set; }

        /// <summary> 账单情况 </summary>
        [Column(StringLength = 50)]
        public string BillingState { set; get; }

        /// <summary>  </summary>
        [Column(StringLength = 500)]
        public string Remarks { set; get; }


        public decimal Total {  set; get; } 

        //public bool isdel { set; get; }

        ///// <summary> 没有快递记录 </summary>
        //public override bool NoLogiTrace { get; set; }

        ///// <summary> 出库中没有的 </summary>
        //public override bool NotInOutstock { get; set; }





    }
}
